﻿using CPPEI.Coolzon.Configuration;
using CPPEI.Net.TCP;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.ShareScreen.Server
{
    class Program
    {
        static void Main(string[] args)
        {
            // 初始化配置信息
            XConfigUtil.Init(XEnvironment.Instance, XEnvironment.GetEnvironmentFilePath());

            TCPServer server = new TCPServer(new RequestHandlerFactory());
            server.Start(XEnvironment.Instance.Host.IP, XEnvironment.Instance.Host.Port);

            Console.Core.Command.Run();
            server.Stop();
        }
    }
}
